package com.hqyj.javaSpringBoot.modules.account.service;

import com.github.pagehelper.PageInfo;
import com.hqyj.javaSpringBoot.modules.account.entity.Resource;
import com.hqyj.javaSpringBoot.modules.common.entity.Result;
import com.hqyj.javaSpringBoot.modules.common.entity.SearchBean;

import java.util.List;


public interface ResourceService {

    Result<Resource> insertResource(Resource resource);

    Result<Resource> updateResource(Resource resource);

    Result<Object> deleteResourceById(int id);

    Resource getResourceById(int id);

    List<Resource> getResourcesByRoleId(int roleId);

    PageInfo<Resource> getResourcesBySearchBean(SearchBean searchBean);
}
